#!/bin/sh

sudo apt-get install supervisor
echo "install supervisor successed"

sudo mkdir /opt/ip-server  &&  sudo cp  *  /opt/ip-server
cd /opt/ip-server
echo "copy documents successed"

sudo cp ip-client.conf /etc/supervisor/conf.d/

sudo supervisorctl -c /etc/supervisor/supervisord.conf reload
sudo supervisorctl start client-send

